import jwt from 'jsonwebtoken';
import config from '@/config';
export function setToken(uid) {
	let created = Math.floor(Date.now() / 1000);
	let cert = config.jwt.PRIVITE_KEY;
	let token = jwt.sign({ uid: uid }, cert, { expiresIn: config.jwt.EXPIRESD });
	return token;
}
